package com.sfx.other.JVM.ClassLoader;

public class Test {
    public static int aMethod(int i) throws Exception {
        try {
            return i / 10;
        } catch (Exception ex) {
            throw new Exception("exception in a aMethod");
        } finally {
            System.out.printf("finally");
        }
    }

    public static void main(String[] args) throws Exception {
        try {
            aMethod(0);
        } catch (Exception ex) {
            throw new Exception("exception in main");
        }finally {
            System.out.printf("finished");
        }

    }
}